package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 产品分类 
 *
 * @author WeiZiDong
 */
@Table(name = "`pms_product_category`")
@Data
@ApiModel("产品分类")
public class PmsProductCategory implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "ID", example = "String")
    private String id;
    @Column(name = "`pid`")
    @ApiModelProperty(value = "上级分类", example = "String")
    private String pid;
    @Column(name = "`category_name`")
    @ApiModelProperty(value = "分类名称", example = "String")
    private String categoryName;
    @Column(name = "`level`")
    @ApiModelProperty(value = "分类级别", example = "1")
    private Integer level;
    @Column(name = "`icon`")
    @ApiModelProperty(value = "图标", example = "String")
    private String icon;
    @Column(name = "`weight_value`")
    @ApiModelProperty(value = "权重值", example = "1")
    private Integer weightValue;
    @Column(name = "`has_child`")
    @ApiModelProperty(value = "是否有子元素", example = "String")
    private String hasChild;
    @Column(name = "`category_status`")
    @ApiModelProperty(value = "状态", example = "0")
    private Integer categoryStatus;
    @Column(name = "`delete_status`")
    @ApiModelProperty(value = "删除状态0-&gt;未删除；1-&gt;已删除", example = "1")
    private Integer deleteStatus;
    @Column(name = "`revision`")
    @ApiModelProperty(value = "乐观锁", example = "1")
    private Integer revision;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
